/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package classdemo;

import java.io.IOException;

/**
 *
 * @author TQNINH
 */
public class ProcessExec {

    public ProcessExec() {
        
    }

    void getProcessExec() {
        Runtime objRun = Runtime.getRuntime();
        Process objProcess = null;
        try {
            objProcess = objRun.exec("mspaint.exe");
        } catch (IOException e) {
            System.out.println("Error executing Paint application.");
        }
    }
}
